package com.forum.service;

import com.forum.pojo.Message;
import com.forum.pojo.Module;
import com.forum.pojo.Evaluate;

import java.util.List;

public interface MessageService {
    //添加
    public int addMessager(Message message);
    //通过
    public Message findMessageById(String messageID);
    //通过
    public List<Message> findMessageByMessageName(String messageName);
    //通过
    public List<Message> findMessageByUserID(String userID);
    //通过
//    public List<Message> findMessageByUserIdAndMId(String userID);
    //通过
    public List<Message> findMessageByModuleName(String moduleName);
    //查找所有
    public List<Message> findAllMessage();
    //
    public int deleteMessage(String messageID);

    public List<Evaluate> findEvaluate(String messageID);

    public List<Module> Allmodule();

    public int updateMessage (String messageContent,String moduleName,String messageID);
//添加评论
    public int addEvaluate(String messageID,String userID,String comments);
}
